import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a004(fd: IFeidaoAiBrowserComponent, args: { currentTarget: HTMLDivElement }) {
	// todo
	const target = args.currentTarget as HTMLDivElement;
	// target.classList.add('bg-theme-2');
	target.classList.add('color-theme1');
	(target.childNodes[0] as HTMLDivElement).classList.add('color-theme1');
	const dataclas = (target.childNodes[0].childNodes[0] as HTMLDivElement).dataset.feidaoDataclas;
	if (dataclas === '3') {
		(target.childNodes[0].childNodes[0] as HTMLDivElement).style.setProperty('color', 'rgb(239, 241, 245)');
	}
	const t = target.querySelector<HTMLDivElement>('[data-feidao-s="s"]');
	if (t) {
		t.style.setProperty('left', '0');
	}
}
